<template>
    <div>
        <h2>安装</h2>
        <code>yarn add @hyjiacan/vue-ellipsis</code>
        <p>或</p>
        <code>npm install @hyjiacan/vue-ellipsis</code>
        <h2>使用</h2>
        <code>import ellipsis from '@hyjican/vue-ellipsis'</code>
        <code>Vue.use(ellipsis)</code>
        <p>或</p>
        <code>import {ellipsisDirective, ellipsisComponent} from '@hyjiacan/vue-ellipsis'</code>
        <code>Vue.directive(ellipsisDirective.name, ellipsisDirective)</code>
        <code>Vue.component(ellipsisComponent.name, ellipsisComponent)</code>
    </div>
</template>

<script>
export default {
    name: 'Usage'
}
</script>

<style scoped>

</style>
